<?php
namespace web\controller\index;
use web\controller\BaseController;

use web\model\MongoModel;
class MongoController extends BaseController {

    public function add(){
        $data = array(
            "name" => "miao",
            "age" => 11,
            "phone" => 15110055323,
        );

        $rs = MongoModel::add($data);
        echo jsonOut($rs);
    }

}